﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using RIO.Enum;

namespace RIO.Rooms
{
    internal class ChipDescriptor
    {
        public PlayerColor PlayerColor { get; set; }
        public Point Coord { get; set; }
        public Size Size { get; set; }
        public ChipPlace Place { get; set; }
        public int Position { get; set; }

        public Point LeftTopCorner
        {
            get { return new Point(Coord.X - Size.Width /2, Coord.Y - Size.Height / 2); }
        }

        public ChipDescriptor()
        {
            PlayerColor = PlayerColor.None;
            Coord = new Point(0, 0);
            Size = new Size(0, 0);
            Place = ChipPlace.Off;
            Position = 0;
        }
    }
}